package com.eig.common.entity.course;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 课程科目--课程分类(EduSubject)实体类
 *
 * @author makejava
 * @since 2022-12-07 15:01:42
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "edu_subject")
public class EduSubject implements Serializable {

    /**
     * 课程类别ID
     */
    @TableId
    private String id;
    @TableField(exist = false)
    private  String subjecttitle;
    @TableField(exist = false)
    private  String parentname;
    /**
     * 类别名称
     */
    private String title;
    /**
     * 父ID
     */
    @TableField(value = "parent_id")
    private String parentId;
    /**
     * 课程分类的状态 1 正常  0  禁用
     */
    @TableField(value = "status_id")
    private String statusId;
    /**
     * 备注
     */
    private String remark;
    /**
     * 排序字段
     */
    private Integer sort;
    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;
    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtModified;
    @TableField(exist = false)
    private List<EduSubject> children;


}

